package com.huanxing.cloud.security.config;

import com.huanxing.cloud.security.aop.HxInnerAopAspect;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.http.HttpServletRequest;

@AllArgsConstructor
@Configuration
public class HxInnerConfig {
  private final HttpServletRequest request;

  @Bean
  public HxInnerAopAspect hxInnerAopAspect() {
    return new HxInnerAopAspect(request);
  }
}
